package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.entity.system.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: Mouoal
 * @CreateTime: 2024-12-09  14:38
 * @Version: 1.0
 */
@Mapper
public interface SysRoleUserMapper {

    public abstract void doAssign(@Param("userId") Long userId,
                                  @Param("roleId") Long roleId);		// 添加关联关系
    public abstract void deleteByUserId(Long userId);				// 根据用户的id删除数据
    public abstract List<Long> findSysUserRoleByUserId(Long userId);

}